<script setup>
import {ref} from 'vue'
import * as echarts from 'echarts'
import {getReportService} from "@/api/report.js";

const chartRef = ref()
const report = ref([])
const getInit =async () => {
  report.value = await getReportService()
  const myChart = echarts.init(chartRef.value)
  myChart.setOption(report.value)
}
getInit()
</script>
<template>
  <el-card>
    <div ref="chartRef" style="width: 100%; height: 50vh;"></div>
  </el-card>
</template>

<style lang="scss" scoped>
</style>
